package com.cpz.knife4j.result;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author cpz
 * @since 2022/10/13
 */
@Data
@Schema(description = "通用响应对象")
@NoArgsConstructor
@AllArgsConstructor
public class Result<T> {
    @Schema(description = "响应码")
    private Integer code;
    @Schema(description = "响应数据")
    private T data;
    @Schema(description = "响应描述")
    private String message;
}
